import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { FooterComponent } from './components/footer/footer.component';
import { HomeComponent } from './components/home/home.component';
import { HeaderComponent } from './components/header/header.component';
import { NewsComponent } from './components/news/news.component';
import { LifecycleComponent } from './components/lifecycle/lifecycle.component';
// 双向数据绑定必须引入
import {FormsModule} from '@angular/forms';

import { RequestService } from './services/request.service';
import { Home2Component } from './components/home2/home2.component';

@NgModule({
  declarations: [
    AppComponent,
    FooterComponent,
    HomeComponent,
    HeaderComponent,
    NewsComponent,
    LifecycleComponent,
    Home2Component
  ],
    imports: [
        BrowserModule,
        FormsModule
    ],
  providers: [RequestService],
  bootstrap: [AppComponent]
})
export class AppModule { }
